<?php
/**
 * Created by PhpStorm.
 * User: hebidu
 * Date: 15/12/31
 * Time: 14:57
 */

namespace Xbd\Controller;


use Think\Controller;
use Admin\Api\ConfigApi;

class XbdController extends Controller {

    protected function _initialize(){
        $this->get_title();
    }

    private function get_title(){

        $map=array('name' => 'WEBSITE_TITLE');

        $result = apiCall(ConfigApi::GET_INFO,array($map));

        if($result['status']){
            $this->assign('WEBSITE_TITLE',$result['info']);
        }else{
            $this->assign('WEBSITE_TITLE','welcome');
        }

    }
}